﻿using System.ComponentModel.DataAnnotations;
using System;

namespace isuka.samples.excel
{
    public class StrategySummary
    {
        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "通貨ペア")]
        public string Pair { get; set; }

        [Display(Name = "取引回数")]
        public int NumOfDeals { get; set; }

        [Display(Name = "最大ドローダウン")]
        public double MaxDrowdown { get; set; }

        [Display(Name = "損益")]
        public double TotalProfit { get; set; }

        [Display(Name = "勝率")]
        public double WinPercentage { get; set; }

        [Display(Name = "PF")]
        public double ProfitFactor { get; set; }

        [Display(Name = "平均利益")]
        public double AvgProfit { get; set; }

        [Display(Name = "平均損失")]
        public double AvgLoss { get; set; }

        [Display(Name = "期待値")]
        public double ExpectedValue { get; set; }

        [Display(Name = "PF > 1")]
        public bool BetterProfitFactor { get; set; }

        [Display(Name = "破産確率(上限)")]
        [DisplayFormat(DataFormatString = "{0:P}")]
        public double RuinProbability { get; set; }

        [Display(Name = "稼働開始日")]
        public DateTime StartDate { get; set; }
    }
}
